package com.ctshk.rpc.order.tour.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 保险购买记录
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-05-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_series_order_insurance")
@ApiModel(value="SeriesOrderInsurance对象", description="保险购买记录")
public class SeriesOrderInsurance extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "收据ID")
    private Long receiptId;

    @ApiModelProperty(value = "订单id")
    private Long orderId;

    @ApiModelProperty(value = "团期ID")
    private Long scheduleId;

    @ApiModelProperty(value = "保单单号")
    private String insuranceNumber;

    @ApiModelProperty(value = "保险表ID")
    private Long insuranceRecordId;

    @ApiModelProperty(value = "保险主数据id")
    private Long mainDataId;

    @ApiModelProperty(value = "保险名称")
    private String name;

    @ApiModelProperty(value = "api-编码")
    private String apiCode;

    @ApiModelProperty(value = "计划编码")
    private Integer rationType;

    @ApiModelProperty(value = "承保公司")
    private String insuranceCarriers;

    @ApiModelProperty(value = "投保人旅客id")
    private Long policyHolderId;

    @ApiModelProperty(value = "投保人姓名")
    private String policyHolderName;

    @ApiModelProperty(value = "保险开始时间")
    private LocalDate beginDate;

    @ApiModelProperty(value = "保险结束时间")
    private LocalDate endDate;

    @ApiModelProperty(value = "出发地")
    private String departurePlace;

    @ApiModelProperty(value = "目的地")
    private String destination;

    @ApiModelProperty(value = "保险天数")
    private Integer days;

    @ApiModelProperty(value = "币种id")
    private Long currencyId;

    @ApiModelProperty(value = "币种")
    private String currency;

    @ApiModelProperty(value = "总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "人数")
    private Integer peopleNumber;

    @ApiModelProperty(value = "是否打印收据。0 否 1 是")
    private Integer isPrint;

    @ApiModelProperty(value = "是否购买。0：否，1：是")
    private Integer isPay;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
